/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services;


import java.util.List;
import com.miracleteam.miracle.entities.Mathangcuagianhang;
/**
 *
 * @author DangKhoa
 */
public interface  MatHangCuaGianHangService {
    public List LayDanhSachSanPham(String maGH) ;
     public  List LayDSXemNhieuNhat(String maGH);
    public List LayDSMoiNhat(String maGH);
    public List LayDSKhuyenMai(String maGH);
     public List LayDanhMucSanPham(String maGH) ;
       public List TimKiem(String maGH,String key,double  giatu,double giaden);
        public int SoSanPham(String maGH,String key,double giatu,double giaden);
    
       public  int DemSoTrang(String maGH,String key,double giatu,double giaden);
      
       public  List TimKiemPT(String maGH,String key,double giatu,double giaden, int trang);
            public int TongSanPhamCuaGianHang(String maGH);
   
       public  int DemSoTrangChoTatCaSanPham(String maGH);
       
         public List LayDanhMucSanPhamPT(String maGH, int trang);
         public Mathangcuagianhang LayMatHang(String ma);
         public List MatHangLienQuan(String maGH,String ten);
             public List TimKiem_LoaiSP(String maGH, String tenLoaiSP) ;
          public List TimKiemPT_LoaiSP(String maGH, String tenLoaiSP, int trang);
   
     public int SoSanPham_LoaiSP(String maGH, String tenLoaiSP);
    public int DemSoTrang_LoaiISP(String maGH, String tenLoaiSP) ;
      public  boolean capNhatThongTinMH(Mathangcuagianhang mh);
        public String PhatSinhMaMatHang();
    
       public boolean ThemMatHang(Mathangcuagianhang mh);
}
